<!doctype html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Two Arcs Circle</title>
    <style>
      canvas {
        display: block;
        margin: 0 auto;
      }
    </style>
  </head>
  <body>
    <canvas id="myCanvas" width="400" height="400"></canvas>

    <script>
      const canvas = document.getElementById('myCanvas');
      const ctx = canvas.getContext('2d');

      // Circle properties
      const radius = 30;
      const centerX = canvas.width / 2;
      const centerY = canvas.height / 2;
      const thickness = 20;

      // Colors for the two arcs
      const color1 = '#FF69B4';
      const color2 = '#00FFFF';

      // Angles for the arcs (in radians)
      const totalCircumferenceRads = 2 * Math.PI;
      const arc1Angle = (30 / 100) * totalCircumferenceRads;
      const arc2Angle = (70 / 100) * totalCircumferenceRads;

      // Draw the first arc
      ctx.beginPath();
      ctx.arc(centerX, centerY, radius, 0, arc1Angle, false);
      ctx.lineWidth = thickness;
      ctx.strokeStyle = color1;
      ctx.stroke();

      // Draw the second arc, continuing from where the first arc ended
      ctx.beginPath();
      ctx.arc(centerX, centerY, radius, arc1Angle, arc1Angle + arc2Angle, false);
      ctx.lineWidth = thickness;
      ctx.strokeStyle = color2;
      ctx.stroke();
    </script>
  </body>
</html>
